from time import time


def sort(list: list):
    start = time()
    list = sorted(list)
    end = time()
    return round((end - start) * 1000)


with open('m1_sorted.txt', 'r') as f:
    m1 = [int(list) for list in f]
with open('m2_reverse.txt', 'r') as f:
    m2 = [int(list) for list in f]
with open('m3_shuffle.txt', 'r') as f:
    m3 = [int(list) for list in f]

print(
    f'm1_sorted.txt {sort(m1)} milliseconds\n'
    f'm1_sorted.txt {sort(m1)} milliseconds\n'
    f'm1_sorted.txt {sort(m1)} milliseconds'
)